package com.cloud.api.weixin;

import com.cloud.api.weixin.fallBack.WeixinTestFeignFallback;
import com.cloud.common.core.cons.CloudCons;
import com.cloud.common.core.model.response.SuccessResponses;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 测试模块Feign调用
 *
 * @author yan
 */
@FeignClient(contextId = "weixinTestFeign", path = "/open/test", value = CloudCons.WEIXIN, fallback = WeixinTestFeignFallback.class)
public interface WeixinTestFeign {

    @GetMapping("/load")
    SuccessResponses<String> sysLoad();

    /**
     * 分布式事务测试 扣减余额
     *
     * @return
     */
    @PostMapping("/seataReduceAmount")
    SuccessResponses<Void> seataReduceAmount();
}
